using System;
using System.Windows.Forms;
using CastleSample.Business.Remoting.Server;
using CastleSample.Core;

namespace CastleSample.RemotingServer
{
    public partial class FormServerManager : Form
    {
        public FormServerManager()
        {
            InitializeComponent();
        }

        private void buttonToggleServerStatus_Click(object sender, EventArgs e)
        {
            RemotingServerDamonService.Instance.Start();
            LogService.Info(GetType().FullName, "Server Started!");
        }
    }
}